package com.borened.common.core.exception;

/**
 * 业务异常
 *
 * @author: cch
 * @since: 2021/11/3
 */

public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 6053227184363867815L;


    public BusinessException() {

    }

    public BusinessException(String message) {
        super(message);
    }

    /**
     * 使用jdk String.format, 使用%s占位替换参数。
     *
     * @param messageTemplate 字符串模板
     * @param params          替换参数
     */
    public BusinessException(String messageTemplate, Object... params) {
        this(String.format(messageTemplate, params));
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }


}
